package com.example.primeiraaplic;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class tela1 extends Activity implements OnClickListener{
	
	Button btChamaTela;
	
	
	
	public void onCreate(Bundle icicle) {
		super.onCreate(icicle);
		setContentView(R.layout.tela1);

		btChamaTela = (Button) findViewById(R.tela1.btChamaTela);
		btChamaTela.setOnClickListener(this);
	}

	@Override
	public void onClick(View arg0) {
		// TODO Auto-generated method stub
		if(arg0 == btChamaTela){
			Intent in = new Intent(this,tela2.class);
			startActivity(in);
		}
	}

}
